package cn.stylefeng.guns.modular.dms.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 文件信息
 * </p>
 *
 * @author yzb
 * @since 2019-11-09
 */
@TableName("dms_directory_file")
public class DirectoryFile implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "file_id", type = IdType.AUTO)
    private Integer fileId;

    /**
     * 文件名称
     */
    @TableField("name")
    private String name;

    /**
     * 文件类型
     */
    @TableField("media_type")
    private Integer mediaType;

    /**
     * 文件后缀
     */
    @TableField("file_suffix")
    private String fileSuffix;

    /**
     * 文件大小
     */
    @TableField("file_size")
    private String fileSize;

    /**
     * 绝对地址
     */
    @TableField("url")
    private String url;

    /**
     * 物理地址
     */
    @TableField("path")
    private String path;

    /**
     * 视频封面图
     */
    @TableField("video_cover")
    private String videoCover;


    /**
     * 目录id
     */
    @TableField("directory_id")
    private Integer directoryId;

    /**
     * 拥有者ID
     */
    @TableField("ower_id")
    private Integer owerId;

    /**
     * 是否用户
     */
    @TableField("is_user")
    private Integer isUser;

    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;

    /**
     * 存储引擎
     */
    @TableField("storage_type")
    private Integer storageType;

    /**
     * 添加时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableField("if_del")
    private Integer ifDel;

    /**
     * 删除时间
     */
    @TableField("delete_time")
    private Date deleteTime;

    public Integer getMediaType() {
        return mediaType;
    }

    public void setMediaType(Integer mediaType) {
        this.mediaType = mediaType;
    }

    public String getVideoCover() {
        return videoCover;
    }

    public void setVideoCover(String videoCover) {
        this.videoCover = videoCover;
    }

    public Integer getFileId() {
        return fileId;
    }

    public void setFileId(Integer fileId) {
        this.fileId = fileId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getFileType() {
        return mediaType;
    }

    public void setFileType(Integer mediaType) {
        this.mediaType = mediaType;
    }

    public String getFileSuffix() {
        return fileSuffix;
    }

    public void setFileSuffix(String fileSuffix) {
        this.fileSuffix = fileSuffix;
    }

    public String getFileSize() {
        return fileSize;
    }

    public void setFileSize(String fileSize) {
        this.fileSize = fileSize;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Integer getDirectoryId() {
        return directoryId;
    }

    public void setDirectoryId(Integer directoryId) {
        this.directoryId = directoryId;
    }

    public Integer getOwerId() {
        return owerId;
    }

    public void setOwerId(Integer owerId) {
        this.owerId = owerId;
    }

    public Integer getIsUser() {
        return isUser;
    }

    public void setIsUser(Integer isUser) {
        this.isUser = isUser;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getStorageType() {
        return storageType;
    }

    public void setStorageType(Integer storageType) {
        this.storageType = storageType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIfDel() {
        return ifDel;
    }

    public void setIfDel(Integer ifDel) {
        this.ifDel = ifDel;
    }

    public Date getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

    @Override
    public String toString() {
        return "DirectoryFile{" +
        "fileId=" + fileId +
        ", name=" + name +
        ", mediaType=" + mediaType +
        ", fileSuffix=" + fileSuffix +
        ", fileSize=" + fileSize +
        ", url=" + url +
        ", path=" + path +
        ", directoryId=" + directoryId +
        ", owerId=" + owerId +
        ", isUser=" + isUser +
        ", sort=" + sort +
        ", storageType=" + storageType +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", ifDel=" + ifDel +
        ", deleteTime=" + deleteTime +
        "}";
    }
}
